﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TCMS.Models.DAO;

namespace TCMS.Models
{
    /// <summary>
    /// Implement all DAO interface, return DAO instance
    /// </summary>
    public class DAOFactory
    {
        /// <summary>
        /// get TaskDAO instance
        /// </summary>
        /// <returns></returns>
        private static TaskDAO _taskDAO = new TaskDAOImp();
        public static TaskDAO getTaskDAO()
        {
            return _taskDAO;
        }


        /// <summary>
        /// get ShopFloorDAO instance
        /// </summary>
        /// <returns></returns>
        private static ShopFloorDAO _shopFloorDAO = new ShopFloorDAOImp();

        public static ShopFloorDAO getShopFloorDAO()
        {
            return _shopFloorDAO;
        }
    }
}